<?php
namespace Illuminate\Routing;

use Illuminate\Http\RedirectResponse;

class RedirectController extends Controller {
    public function __invoke(...$args) {
        list($destination, $status) = array_slice($args, -2);

        return new RedirectResponse($destination, $status);
    }
}
